<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePopularActivitiesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('popular_activities', function (Blueprint $table) {
            $table->increments('id');
            $table->string('title')->default('')->comment('标题');
            $table->string('description')->nullable()->comment('简介');
            $table->string('tag')->nullable()->comment('标签');
            $table->string('cover')->default('')->comment('封面图');
            $table->string('images')->nullable()->comment('图集');
            $table->string('content')->default('')->comment('活动内容');
            $table->dateTime('time_start')->comment('活动开始时间');
            $table->dateTime('time_end')->comment('活动结束时间');
            $table->string('address')->default('')->comment('活动地点');
            $table->string('organizers')->default('')->comment('主办方');
            $table->string('participate')->default('')->comment('参与对象');
            $table->integer('order')->default('1')->comment('排序');
            $table->integer('status')->default('1')->comment('状态');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('popular_activities');
    }
}
